package com.sora.sora.common.model.param;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
public class ReplyParam {

    @Min(value = 1, message = "非法id", groups = ReplyParam.UpdateReply.class)
    private int id;

    @Min(value = 1, message = "非法评论id")
    private int commentId;

    @Min(value = 1, message = "非法回复楼层id")
    private int replyId;

    @Min(value = 0, message = "非法回复类型")
    private int replyType;

    @NotBlank(message = "评论内容不能为空")
    private String content;

    @Min(value = 1, message = "非法评论人id")
    private int fromId;

    @Min(value = 1, message = "非法被评论人id")
    private int toId;

    public interface CreateReply {}

    public interface UpdateReply {}
}
